<extend name="Public/List/Common"/>
<block name="pageHeader">
    <div class="bjui-pageHeader">
        <a href="{:U('')}" data-toggle="navtab" data-title="文件管理器">.</a>
        <for start="0" end="count($fielPath)">
            <php>
                $pathPrefix .= '/'.$fielPath[$i];
                $pathPrefix = trim($pathPrefix, '/');
            </php>
            <a href="{:U('', array('filePath'=>$pathPrefix))}" data-toggle="navtab">{$fielPath[$i]}</a>/
        </for>
    </div>
</block>
<block name="pageContent">
    <div class="bjui-pageContent tableContent">
        <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
            <thead>
                <tr>
                    <th>文件名</th>
                    <th width="100">操作</th>
                </tr>
            </thead>
            <tbody>
                <?php if(@$filesList)foreach($filesList as $file):?>
                <tr>
                    <td>
                        <if condition="$file['isDir']">
                            <a data-toggle="navtab" href="{:U('', array('filePath'=>$file['filePath']))}">{$file.fileName}</a>
                        <else />
                            <a href="{:U('edit', array('filePath'=>$file['filePath']))}" data-toggle="navtab" data-id="{$file.fileName}" data-title="{$file.fileName}">{$file.fileName}</a>
                        </if>
                    </td>
                    <td>
                        <a href="{:U('edit?id='.$arr['id'].'&pid='.$arr['pid'])}" class="btn btn-green" data-toggle="dialog" data-id="dialog-normal" data-mask="true" data-title="{$arr.title}-编辑" data-width='700' data-height='400'>编辑</a>
                        <a href="{:U('del?id='.$arr['id'])}" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">删</a>
                    </td>
                </tr>
                <?php endforeach;?>
            </tbody>
        </table>
    </div>
</block>
<block name="pageFooter"></block>